<form action="<?php echo $this->action; ?>" method="post" OnSubmit="return checkdados(this)">
<table width="399" border="0">
 <tr>
  <td>Evento:</td>
    <td ><select name="evento" id="evento">
    <?php echo UtilController::getOptionEvento($this->evento, 1, 1); ?>
      </select>
      <tr>
      <td>Empresa</td>
      <td colspan="3"><input type="text" name="empresa" id="empresa" size="50" value="<?php echo $this->empresa;?>" /></td>
    </tr>
    <tr>
    <tr>
      <td>Participante</td>
      <td colspan="3"><input type="text" name="participante" id="participante" size="50" value="<?php echo $this->participante;?>" /></td>
    </tr>
 	<tr>
      <td colspan="4" align="right"><input type="submit" name="find" id="find" value="Consultar"></td>
    </tr>
  </table>
</form>
<?php if ($this->dadosConsulta != null && count($this->dadosConsulta) > 0) {?>
<table  id="item" class="table displaytag">
	<thead>
    <tr>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "1", $this->asc);?>">Empresa</a></th>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "2", $this->asc);?>">Telefone</a></th>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "3", $this->asc);?>">Participante</a></th>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "4", $this->asc);?>">Sexo</a></th>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "6", $this->asc);?>">E-mail</a></th>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "7", $this->asc);?>">Contato</a></th>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "8", $this->asc);?>">Cidade</a></th>
      <th class="col"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "9", $this->asc);?>">Estado</a></th>
    </tr>
    </thead>
    <tbody>
    <?php $grid = 0;
     foreach($this->dadosConsulta as $item) :
     $classgrid = $grid % 2 == 0 ? "row_off" : "row_on";
     $grid++;
     ?>
     <tr class="<?php echo $classgrid;?>" onMouseOver="this.style.backgroundColor='#FFF4B7';" onMouseOut="this.style.backgroundColor='';">
      <td><?php echo $item['empresa'];?></td>
      <td width=90px><?php echo $item['nr_telefone'];?></td>
      <td><?php echo $item['participante'];?></td>
      <td><?php echo $item['sexo'];?></td>
      <td><?php echo $item['ds_email'];?></td>
      <td><?php echo $item['dt_contato'];?></td>
      <td><?php echo $item['cidade'];?></td>
      <td><?php echo $item['estado'];?></td>
   </tr>
    <?php endforeach; ?>
    <tr>
    <td colspan="7" align="right"><b><?php echo count($this->dadosConsulta);?> registros</b></td></tr>
  </tbody>
  </table>

<?php } ?>